function chkcost(){ memo1_change(); costchange(); } function costchange() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var stand_code =document.orderform.stand_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num.value; price.value = 3500*eval(qty_code.value)*subtitle; price01_change(); } function memo1_change() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num; var pdkj1_option1 =document.orderform.pdkj1_option1; document.all.memo1.innerHTML = paper_code.options[paper_code.selectedIndex].innerText + " / " + color_code.options[color_code.selectedIndex].innerText + " / " + size_code.options[size_code.selectedIndex].innerText+" / "+ qty_code.options[qty_code.selectedIndex].innerText + " / " + subtitle.options[subtitle.selectedIndex].innerText; document.all.memo.innerHTML = pdkj1_option1.options[pdkj1_option1.selectedIndex].innerText; } function price01_change() { var frm = document.orderform; // //ÈÄ°¡°ø_¿À½Ã // if(frm.after_osi.value!=""){ // after_osi_cost(); // } // // //ÈÄ°¡°ø_¹Ì½Ì // if(frm.after_mis.value!=""){ // after_mis_cost(); // } // // //ÈÄ°¡°ø_Ÿ°ø // if(frm.after_tar.value!=""){ // after_tar_cost(); // } // // //ÈÄ°¡°ø_±Íµµ¸® // if(frm.after_gui.value!=""){ // after_gui_cost(); // } // // //ÈÄ°¡°ø_¿¥º¸ // if(frm.after_emb.value!=""){ // after_emb_cost(); // } // // //ÈÄ°¡°ø_Çü¾Ð // if(frm.after_hyung.value!=""){ // after_hyung_cost(); // } // // //ÈÄ°¡°ø_¹Ú // if(frm.after_bak.value!=""){ // after_bak_cost(); // } // // //ÈÄ°¡°ø_³Ñ¹ö¸µ // if(frm.after_num.value!=""){ // after_num_cost(); // } // // //ÈÄ°¡°øÃÑÇÕ // total_after(); var price = frm.pay; var after_price = frm.after_total_price_plus.value; var price_01 = frm.price_01; price_01.value = Math.round(price.value); document.all.span_price.innerHTML = comma(Math.round(price.value)); document.all.break_pro_price_plus.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃÑ¾× // document.all.view_price.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃѾ×(»ó´Ü)20111226 Ãß°¡ document.all.span_total_estimate_prie.innerHTML = comma(Math.round(eval(price.value)+eval(after_price))); //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× //alert(frm.after_total_price.value); //ºÎ°¡¼¼ tax_price = (eval(price.value)+eval(after_price))/10 frm.tax_price.value = tax_price; document.all.span_tax_price.innerHTML = comma(tax_price); //°ßÀûÃÑ¾× estimate_price = eval(price.value)+eval(after_price)+eval(tax_price) frm.estimate_price_end.value = estimate_price; document.all.span_estimate_price_end.innerHTML = comma(estimate_price); //ÁÖ¹® ¹Ù·Î¹Ø¿¡ Á¦Ç°±Ý¾×, ºÎ°¡¼¼, °ßÀûÃÑ¾× # ±Ý¾× view_price display:none 2017-12-15 if ($("#span_total_estimate_prie_sub").length > 0){ var span_total_estimate_prie_val = $("#span_total_estimate_prie").text(); $("#span_total_estimate_prie_sub").text(span_total_estimate_prie_val); } if ($("#span_tax_price_sub").length > 0){ var span_tax_price_val = $("#span_tax_price").text(); $("#span_tax_price_sub").text(span_tax_price_val); } if ($("#span_estimate_price_end_sub").length > 0){ var span_estimate_price_end_val = $("#span_estimate_price_end").text(); $("#span_estimate_price_end_sub").text(span_estimate_price_end_val); } } function comma(x){ var txtNumber = '' + x; var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])'); var arrNumber = txtNumber.split('.'); arrNumber[0] += '.'; do{ arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2'); } while (rxSplit.test(arrNumber[0])); if (arrNumber.length > 1) { return arrNumber.join(''); }else{ return arrNumber[0].split('.')[0]; } }